package com.jintoufs.service.collect.impl;

import com.jintoufs.dao.collect.CollectMapper;
import com.jintoufs.domain.collect.Collect;
import com.jintoufs.service.collect.CollectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by pengyang on 2017/12/26.
 */
@Service("collectService")
public class CollectServiceImpl implements CollectService {

    @Resource
    private CollectMapper collectMapper;

    @Override
    public Collect collect(Collect collect) {
        collectMapper.insertSelective(collect);
        return collect;
    }
}
